﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manage/MasterPage.master" AutoEventWireup="true" CodeFile="ExportTrain.aspx.cs" Inherits="Manage_ExportTrain" %>
<%@ Register Src="~/Manage/CmsMessageBox.ascx" TagName="MessageBox" TagPrefix="cms" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <script type="text/javascript">
        $(document).ready(function () {
            $('#<%=Export.ClientID %>').click(function () {
                var ds = [{ 'Controller': '#<%=Started.ClientID %>',
                    'Type': 'RD',
                    'ErrorMessage': '请正确输入开始时间。',
                    'Clear': false,
                    'Focus': true
                }, { 'Controller': '#<%=Ended.ClientID %>',
                    'Clear': false,
                    'Type': 'RD',
                    'ErrorMessage': '请正确输入结束时间。',
                    'Focus': true
                }];

                return Cms_ValidateForm(ds);
            });
        });
    </script>
    <style type="text/css">
        .Button
        {
            height: 21px;
        }
    </style>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="body" Runat="Server">
    <table class="Info" cellspacing="1">
        <tr>
            <td align="right" style="width: 100px">开始时间：</td>
            <td align="center"><asp:TextBox ID="Started" runat="server" Width="200px" CssClass="text"></asp:TextBox>&nbsp;如：2012-08-12</td>
        </tr>
        <tr>
            <td align="right">结束时间：</td>
            <td align="center"><asp:TextBox ID="Ended" runat="server" Width="200px" CssClass="text"></asp:TextBox>&nbsp;如：2012-08-12</td>
        </tr>
        <tr>
            <td colspan="2" align="center">
                <asp:Button ID="Export" runat="server" Text="确定" 
                     CssClass="Button" onclick="Export_Click" />
                <asp:HyperLink ID="Link" runat="server" Target="_blank" Visible="False">下载</asp:HyperLink>
            </td>
        </tr>
    </table>
</asp:Content>